%global __find_debuginfo_files %nil
%add_debuginfo_skiplist %_prefix/*
%add_verify_elf_skiplist %_prefix/*
%brp_strip_none %_prefix/*
%add_findreq_skiplist %_prefix/*

Name: tar
Version: 1.34
Release: alt1

Summary: A GNU file archiving program
License: GPLv3+
Group: Archiving/Backup

Requires: libc.so.6(%GLIBC_MINVER)%s64bit
Requires: %target_ld_so

%description
The GNU tar program saves many files together into one archive and
can restore individual files (or all of the files) from the archive.
tar can also be used to add supplemental files to an archive and to
update or list files in the archive.  tar includes multivolume support,
automatic archive compression/decompression, the ability to perform
remote archives and the ability to perform incremental and full backups.

%prep
:

%build
:

%install
echo \
usr/bin/tar \
usr/share/locale/bg/LC_MESSAGES/tar.mo \
usr/share/locale/ca/LC_MESSAGES/tar.mo \
usr/share/locale/cs/LC_MESSAGES/tar.mo \
usr/share/locale/da/LC_MESSAGES/tar.mo \
usr/share/locale/de/LC_MESSAGES/tar.mo \
usr/share/locale/el/LC_MESSAGES/tar.mo \
usr/share/locale/eo/LC_MESSAGES/tar.mo \
usr/share/locale/es/LC_MESSAGES/tar.mo \
usr/share/locale/et/LC_MESSAGES/tar.mo \
usr/share/locale/eu/LC_MESSAGES/tar.mo \
usr/share/locale/fi/LC_MESSAGES/tar.mo \
usr/share/locale/fr/LC_MESSAGES/tar.mo \
usr/share/locale/ga/LC_MESSAGES/tar.mo \
usr/share/locale/gl/LC_MESSAGES/tar.mo \
usr/share/locale/hr/LC_MESSAGES/tar.mo \
usr/share/locale/hu/LC_MESSAGES/tar.mo \
usr/share/locale/id/LC_MESSAGES/tar.mo \
usr/share/locale/it/LC_MESSAGES/tar.mo \
usr/share/locale/ja/LC_MESSAGES/tar.mo \
usr/share/locale/ko/LC_MESSAGES/tar.mo \
usr/share/locale/ky/LC_MESSAGES/tar.mo \
usr/share/locale/ms/LC_MESSAGES/tar.mo \
usr/share/locale/nb/LC_MESSAGES/tar.mo \
usr/share/locale/nl/LC_MESSAGES/tar.mo \
usr/share/locale/pl/LC_MESSAGES/tar.mo \
usr/share/locale/pt_BR/LC_MESSAGES/tar.mo \
usr/share/locale/pt/LC_MESSAGES/tar.mo \
usr/share/locale/ro/LC_MESSAGES/tar.mo \
usr/share/locale/ru/LC_MESSAGES/tar.mo \
usr/share/locale/sk/LC_MESSAGES/tar.mo \
usr/share/locale/sl/LC_MESSAGES/tar.mo \
usr/share/locale/sr/LC_MESSAGES/tar.mo \
usr/share/locale/sv/LC_MESSAGES/tar.mo \
usr/share/locale/tr/LC_MESSAGES/tar.mo \
usr/share/locale/uk/LC_MESSAGES/tar.mo \
usr/share/locale/vi/LC_MESSAGES/tar.mo \
usr/share/locale/zh_CN/LC_MESSAGES/tar.mo \
usr/share/locale/zh_TW/LC_MESSAGES/tar.mo \
%nil | \
tr ' ' '\n' > %name.lists

lists=`pwd`/%name.lists
mkdir -p %buildroot
cd %clfs_stagedir && cpio -puvd %buildroot < $lists
